package com.fuxi.cloud.desreport.service;

import com.fuxi.cloud.common.expetion.JimuReportException;
import com.fuxi.cloud.common.vo.Result;
import com.fuxi.cloud.desreport.entity.JmReportDataSource;
import com.fuxi.cloud.desreport.entity.JmReportDb;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * IJmReportDbService
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */

public interface IJmReportDbService {
    JmReportDb saveDb(JmReportDb var1);

    List<List<Map>> fieldTree(String var1);

    boolean queryIsPage(String var1);

    Map<String, Object> executeSelectSql(String var1, String var2, Map<String, Object> var3);

    Map<String, Object> executeSelectApi(String var1, String var2, String var3);

    Map loadDbData(String var1);

    void delDbData(String var1);

    List<JmReportDataSource> initDataSource(String var1);

    void saveDbSource(JmReportDataSource var1);

    boolean querySourceCode(JmReportDataSource var1);

    void delDataSource(JmReportDataSource var1);

    List<Map<String, Object>> qurestechSql(JmReportDb var1);

    List<Map> parseData(Map<String, Object> var1);

    List<Map<String, Object>> loadDataSourceTable(String var1);

    Map<String, Object> loadTableData(String var1, String var2, Integer var3, Integer var4, String var5);

    Map<String, Object> parseReportSql(String var1, String var2) throws JimuReportException;

    Result addDataSource(JmReportDataSource var1, HttpServletRequest var2);

    List<Map<String, Object>> queryTableName(String var1, String var2);

    void updateById(JmReportDb var1);

    JmReportDb getById(String var1);

    int getCount(String var1, String var2);
}
